<!-- iconSvg组件 author:莫若省-->
<template>
  <svg aria-hidden="true" class="svg-icon" :fill="color">
    <use :xlink:href="symbolId" />
  </svg>
</template>
<script setup lang="ts">
import { computed } from 'vue';
const props = defineProps({
  prefix: {
    type: String,
    default: 'icon',
  },
  name: {
    type: String,
    required: true,
  },
  color: {
    type: String,
    default: '',
  },
});
const symbolId = computed(() => `#${props.prefix}-${props.name}`);
</script>

<style src="./scss/iconSvg.scss"></style>
